﻿namespace JY.Wpf.Core.Events
{
    /// <summary>
    /// 显示加载的遮罩事件模型
    /// </summary>
    public class BusyIndicatorEvent
    {
        /// <summary>
        /// 构造器
        /// </summary>
        /// <param name="isBusy">是否加载</param>
        /// <param name="busyConent">显示内容</param>
        public BusyIndicatorEvent(bool isBusy,object busyConent=null)
        {
            this.IsBusy = isBusy;
            this.BusyContent = busyConent;
        }
        /// <summary>
        /// 是否加载
        /// </summary>
        public bool IsBusy { get; set; }
        /// <summary>
        /// 加载显示的内容
        /// </summary>
        public object BusyContent { get; set; }
    }
}
